Skip to content

Conversation

@TheNormalnij
Copy link
Member

Fixes #3607
removeAllGameBuildings cleans only buildings pool and leaves rare dynamic elements in the game world.
removeGameWorld fixes that issue by cleaning the dummies pool too.

-- Removes all buildings and dummies from game world and frees both pools
nil removeGameWorld()

-- Restores all buildings and dummies
nil restoreGameWorld()

removeAllGameBuildings and restoreAllGameBuildings will be deprecated and removed in future releases

@TheNormalnij TheNormalnij added enhancement New feature or request bugfix Solution to a bug of any kind labels Aug 2, 2024
@TheNormalnij TheNormalnij added this to the 1.6.1 milestone Aug 2, 2024
@TheNormalnij TheNormalnij marked this pull request as ready for review August 4, 2024 17:07
@Fernando-A-Rocha
Copy link
Contributor

@TheNormalnij will u please update the wiki? Let me know if u need advice

@TheNormalnij
Copy link
Member Author

@TheNormalnij will u please update the wiki? Let me know if u need advice

Yep

Fernando-A-Rocha

This comment was marked as outdated.

@botder botder merged commit d7adae6 into multitheftauto:master Jan 10, 2025
6 checks passed
MTABot pushed a commit that referenced this pull request Jan 10, 2025
d7adae6 Add removeGameWorld and restoreGameWorld (PR #3627, Fixes #3607)
@TheNormalnij TheNormalnij deleted the TheNormalnij/removeAllWorld branch January 29, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

removeAllGameBuildings doesn't remove the whole map

5 participants